/**
 * @fileOverview 变量定义。
 * @author [mac-xiang]
 */
import * as path from "path";
import { FSWatcher } from "chokidar";

export const root = path.resolve(__dirname, "../../"),
  jpr = "com.xiang",
  javaPackage = `${jpr}.sql`,
  javaRoot = path.resolve(root, `api/src/main/java/${javaPackage.replace(/\./g, "/")}`),
  entityPath = path.resolve(javaRoot, "entity"),
  mapperPath = path.resolve(javaRoot, "mapper"),
  servicePath = path.resolve(javaRoot, "service"),
  serviceImplPath = path.resolve(javaRoot, "service/impl"),
  h = { watch: undefined as undefined | FSWatcher },
  remotePath = (process.env.remotePath || "~").replace(/\/$/, ""),
  serverName = `${process.env.SERVER_NAME}`;
